<template>
	<el-dialog :visible.sync="dialogVisible" :title="'订单发货状态 - '+detail.ordercode" width="650px" v-drag2anywhere>
		<el-form :model="info" ref="form" label-width="90px">
			<el-row>
				<el-col>
					<el-form-item label="下单时间:">{{detail.orderdate}}</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="订单编号:">{{detail.ordercode}}</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="订单类型:">{{detail.type==1? '京东自营':'京东慧采'}}</el-form-item>
				</el-col>
			</el-row>
			<el-row>
				<el-col :span="12">
					<el-form-item label="快递名称:" prop="postalname">
						<span>{{detail.deliver_detail.postalname}}</span>
					</el-form-item>
				</el-col>
				<el-col :span="12">
					<el-form-item label="快递单号:" prop="postalid">
						<span>{{detail.deliver_detail.postalid}}</span>
 					</el-form-item>
				</el-col>
			</el-row>
		</el-form>
		<div slot="footer" class="dialog-footer">
			<el-button type="primary" size="medium" @click="dialogVisible=false">确定</el-button>
		</div>
	</el-dialog>
</template>

<script>
	export default {
		data() {
			return {
				index: -1,
				detail: {
					orderdate: '',
					ordercode: '',
					type: 1,
					deliver_status: 0,
					deliver_detail: {
						type: -1,

					}
				},
				gwsid: '',
				dialogVisible: false,
				status: 0,
				info: {

				},
				postlist: []
			}
		},
		methods: {
			init(index, data) {
				this.index = index;
				this.detail = data;
			}
		}
	}
</script>

<style>
</style>
